package com.itheima.web;


import com.itheima.service.SetmealGroupService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/setmealGroup")
public class SetmealGroupController {

    @Reference
    private SetmealGroupService setmealGroupService;

    //弹出编辑窗时回显 关联查询检查组
    @RequestMapping("/selectBySetmealId/{setmealId}")
    public Long[] selectBySetmealId(@PathVariable("setmealId") Long setmealId){
        return setmealGroupService.selectBySetmealId(setmealId);
    }
}
